package com.patterns.prototype.advMail;

/**
 * Created by Xiao Yiyun on 2017/4/25.
 * 邮件类代码
 */
public class Mail implements Cloneable {
    //收件人
    private String receiver;
    //邮件名称
    private String mailName;
    //称谓
    private String application;
    //邮件内容
    private String context;
    //邮件尾部
    private String tail;
    //构造函数

    public Mail(AdvTemplate advTemplate) {
        this.mailName = mailName;
        this.context = context;
    }

    public Mail clone() {
        Mail mail = null;
        try {
            mail = (Mail)super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return mail;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getMailName() {
        return mailName;
    }

    public void setMailName(String mailName) {
        this.mailName = mailName;
    }

    public String getApplication() {
        return application;
    }

    public void setApplication(String application) {
        this.application = application;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public String getTail() {
        return tail;
    }

    public void setTail(String tail) {
        this.tail = tail;
    }
}
